package com.hui.util;

import com.hui.service.AdminService;
import com.hui.service.ClassService;
import com.hui.service.StudentService;
import com.hui.service.AdminServiceImpl;
import com.hui.service.ClassServiceImpl;
import com.hui.service.StudentServiceImpl;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 李昭辉
 * @Date: 2021/06/19/16:21
 * @Description: 工厂类，专门生产 Service 层的实现类
 */
public class ServiceFactory {
    private static AdminService adminService = new AdminServiceImpl();
    private static StudentService studentService = new StudentServiceImpl();
    private static ClassService classService = new ClassServiceImpl();

    public static AdminService getAdminService() {
        return adminService;
    }

    public static StudentService getStudentService() {
        return studentService;
    }

    public static ClassService getClassService() {
        return classService;
    }
}
